package com.study.rpc07.client;

import com.study.common.IProductService;
import com.study.common.IUserService;

/**
 * 07只是将IUserService接口换成IProductService接口
 */
public class Client {
    public static void main(String[] args) throws Exception{
//        IUserService service = (IUserService) com.study.rpc06.client.Stub.getStub(IUserService.class);
//        System.out.println(service.findUserById(123));

        IProductService productService = (IProductService) Stub.getStub(IProductService.class);
        System.out.println(productService.findProductById(321));

    }
}
